{% include file="index.header.tpl.php" %}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">学校每周工作安排</p>
				    <a href="index.php?a=arrange.planadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
					<a href="index.php?a=arrange.planoutdata&plan_week={%$plan_week%}" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-right:8px"> 导 出 </a>
                </div>
                <div class="box-body">
                   <div class="col-sm-4 form-group" >
						  <label for="inputPassword3" class="col-sm-3 text-right">
							   周次：
						  </label>
						  <div class="input-group col-md-4" style="float:left; margin-right:10px;">
							    <select class="form-control" name="plan_week">	
								{%foreach from=$week_lists key=key item=value%}
                                     <option {%if $value.plan_week==$plan_week %}selected="selected"{%/if%}>{%$value.plan_week%}</option>
								{%/foreach%}                                    
                                </select>
						  </div>
						  <input type="hidden" name="a" value="arrange.planlist">
                          <button class="btn btn-primary" type="submit">查询</button>
				    </div>
                    <div style="clear:both"></div>
					
				  <h4 class="text-center">学校{%$semester_data.semester_name%}第{%$week_num%}周工作安排 </h4>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr>
                                        <td width="80">星期</td>
                                        <td>日期</td>
										<td width="50%">主要内容</td>
										<td>负责部门</td>
										<td>备注</td> 										
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$plan_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.plan_day%}</td>
                                        <td>{%$value.start_time%}</td>
										<td>
										{%$value.plan_content%}<br/>
										</td>
										<td>
										{%foreach from=$value.department_name key=k item=v%}
										{%$v%}
										{%/foreach%}
										{%$value.plan_rests%}
										</td>
										<td>{%$value.plan_remark%}</td>
                                    </tr>	
                              {%/foreach%}     
                            </tbody>
                        </table>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
                          <a href="index.php?a=arrange.planupdate&plan_week={%$week_num%}&semester_id={%$semester_id%}" class="btn btn-warning">修 改</a>
                          <a href="index.php?a=arrange.plandel&plan_week={%$week_num%}&semester_id={%$semester_id%}" class="btn btn-danger">删 除</a>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}

